package com.ruoyi.market.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 营销奖励对象 market_prize
 *
 * @author xiaochen
 * @date 2023-01-29
 */
@TableName("market_prize")
public class MarketPrize extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;

    /** 奖品名称 */
    @Excel(name = "奖品名称")
    @TableField("name")
    private String name;

    /** 是否关联商品（0表示否，1表示是） */
    @Excel(name = "是否关联商品", readConverterExp = "0=表示否，1表示是")
    @TableField("correlation")
    private Long correlation;

    /** 中奖概率 */
    @Excel(name = "中奖概率")
    @TableField("probability")
    private String probability;

    /** 奖品图片 */
    @Excel(name = "奖品图片")
    @TableField("cover")
    private String cover;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setCorrelation(Long correlation)
    {
        this.correlation = correlation;
    }

    public Long getCorrelation()
    {
        return correlation;
    }
    public void setProbability(String probability)
    {
        this.probability = probability;
    }

    public String getProbability()
    {
        return probability;
    }
    public void setCover(String cover)
    {
        this.cover = cover;
    }

    public String getCover()
    {
        return cover;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("correlation", getCorrelation())
            .append("probability", getProbability())
            .append("cover", getCover())
            .toString();
    }
}
